package com.molyfun.parents.rest.bean;

import android.os.Parcel;
import android.os.Parcelable;

import com.molyfun.parents.rest.BaseListResponse;

/**
 * Created by william(liuchao.hit@gmail.com).
 * Date:10/21/16.
 */
public class AnnouncementListResponse extends BaseListResponse<AnnouncementListResponse.AnnouncementBean>{

    public static class AnnouncementBean implements Parcelable {

        /**
         * username : molyfun
         * notice : 这是公告
         * title : 这是标题
         * createdatetime : 1527562858000
         */

        private String username;
        private String notice;
        private String title;
        private long createdatetime;

        public String getUsername() {
            return username;
        }

        public void setUsername(String username) {
            this.username = username;
        }

        public String getNotice() {
            return notice;
        }

        public void setNotice(String notice) {
            this.notice = notice;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public long getCreatedatetime() {
            return createdatetime;
        }

        public void setCreatedatetime(long createdatetime) {
            this.createdatetime = createdatetime;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.username);
            dest.writeString(this.notice);
            dest.writeString(this.title);
            dest.writeLong(this.createdatetime);
        }

        public AnnouncementBean() {
        }

        protected AnnouncementBean(Parcel in) {
            this.username = in.readString();
            this.notice = in.readString();
            this.title = in.readString();
            this.createdatetime = in.readLong();
        }

        public static final Parcelable.Creator<AnnouncementBean> CREATOR = new Parcelable.Creator<AnnouncementBean>() {
            @Override
            public AnnouncementBean createFromParcel(Parcel source) {
                return new AnnouncementBean(source);
            }

            @Override
            public AnnouncementBean[] newArray(int size) {
                return new AnnouncementBean[size];
            }
        };
    }

}